package com.bjc.principle.templatemethod;

/**
 * @program: DesignPattern
 * @description:
 * @author: bjc
 * @create: 2021-01-04 16:32
 */
public class CookingFood extends Cooking {
    @Override
    protected void step1() {
        System.out.println("放鸡蛋和西红柿");
    }

    @Override
    protected void step2() {
        System.out.println("少放盐多放味精");
    }
}
